// TPFactoryView.h : interface of the CTPFactoryView class
//
/////////////////////////////////////////////////////////////////////////////

#pragma once


class CTPFactoryView
	: public CDialogImpl<CTPFactoryView>,
	public CWinDataExchange<CTPFactoryView>
{
public:
	enum { IDD = IDD_TPFACTORY_FORM };

	BOOL PreTranslateMessage(MSG* pMsg);

	BEGIN_MSG_MAP(CTPFactoryView)
		COMMAND_HANDLER(IDC_BROWSER_CONFIG, BN_CLICKED, OnBnClickedBrowserConfig)
		COMMAND_HANDLER(IDC_BROWSER_MP3, BN_CLICKED, OnBnClickedBrowserMp3)
		COMMAND_HANDLER(IDC_BROWSER_OUT, BN_CLICKED, OnBnClickedBrowserOut)
		MESSAGE_HANDLER(WM_INITDIALOG, OnInitDialog)
		COMMAND_HANDLER(IDC_CONVERT, BN_CLICKED, OnBnClickedConvert)
	END_MSG_MAP()

	BEGIN_DDX_MAP(CTPFactoryView)
		DDX_TEXT(IDC_FILE_MP3, m_strMP3)
		DDX_TEXT(IDC_FILE_CONFIG, m_strConfig)
		DDX_TEXT(IDC_FILE_OUT, m_strOut)
	END_DDX_MAP()

	// Handler prototypes (uncomment arguments if needed):
	//	LRESULT MessageHandler(UINT /*uMsg*/, WPARAM /*wParam*/, LPARAM /*lParam*/, BOOL& /*bHandled*/)
	//	LRESULT CommandHandler(WORD /*wNotifyCode*/, WORD /*wID*/, HWND /*hWndCtl*/, BOOL& /*bHandled*/)
	//	LRESULT NotifyHandler(int /*idCtrl*/, LPNMHDR /*pnmh*/, BOOL& /*bHandled*/)
	LRESULT OnBnClickedBrowserConfig(WORD /*wNotifyCode*/, WORD /*wID*/, HWND /*hWndCtl*/, BOOL& /*bHandled*/);
	LRESULT OnBnClickedBrowserMp3(WORD /*wNotifyCode*/, WORD /*wID*/, HWND /*hWndCtl*/, BOOL& /*bHandled*/);
	LRESULT OnBnClickedBrowserOut(WORD /*wNotifyCode*/, WORD /*wID*/, HWND /*hWndCtl*/, BOOL& /*bHandled*/);
	LRESULT OnInitDialog(UINT uMsg, WPARAM wParam, LPARAM lParam, BOOL& bHandled);
	LRESULT OnBnClickedConvert(WORD /*wNotifyCode*/, WORD /*wID*/, HWND /*hWndCtl*/, BOOL& /*bHandled*/);

private:
	CString	m_strMP3;
	CString m_strConfig;
	CString m_strOut;
};
